package com.mt.grand.factory.simple;

import com.mt.grand.factory.domain.Food;

/**
 * 简单工厂实例
 */
public class SimpleFactoryTest {

    public static void main(String[] args) {

        SimpleFactory simpleFactory = new SimpleFactory();
        Food food = simpleFactory.getFood("Apple");
        System.out.println(food.getName());
    }

}
